package gui.client.panels;

import java.awt.GridBagLayout;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JPanel;
import java.awt.Dimension;
import javax.swing.JButton;
import java.awt.Rectangle;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Color;

public class JWelcomePanel extends JPanel {

	private static final long serialVersionUID = 1L;
	private JButton LogoutButton = null;
	private JCompanyLogoPanel logoCompanyLogoPanel = null;
	private JWelcomeMessagePanel usersWelcomeMessagePanel = null;
	/**
	 * This is the default constructor
	 */
	public JWelcomePanel() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(820, 133);
		this.setLayout(null);
		this.setBackground(new Color(102, 102, 255));
		this.add(getLogoutButton(), null);
		this.add(getLogoCompanyLogoPanel(), null);
		this.add(getUsersWelcomeMessagePanel(), null);
	}

	/**
	 * This method initializes LogoutButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getLogoutButton() {
		if (LogoutButton == null) {
			LogoutButton = new JButton();
			LogoutButton.setBounds(new Rectangle(698, 15, 112, 31));
			LogoutButton.setText("Logout");
		}
		return LogoutButton;
	}

	/**
	 * This method initializes logoCompanyLogoPanel	
	 * 	
	 * @return gui.client.panels.JCompanyLogoPanel	
	 */
	private JCompanyLogoPanel getLogoCompanyLogoPanel() {
		if (logoCompanyLogoPanel == null) {
			logoCompanyLogoPanel = new JCompanyLogoPanel();
			logoCompanyLogoPanel.setBounds(new Rectangle(17, 6, 320, 116));
		}
		return logoCompanyLogoPanel;
	}

	/**
	 * This method initializes usersWelcomeMessagePanel	
	 * 	
	 * @return gui.client.panels.JWelcomeMessagePanel	
	 */
	private JWelcomeMessagePanel getUsersWelcomeMessagePanel() {
		if (usersWelcomeMessagePanel == null) {
			usersWelcomeMessagePanel = new JWelcomeMessagePanel();
			usersWelcomeMessagePanel.setBounds(new Rectangle(338, 6, 342, 98));
		}
		return usersWelcomeMessagePanel;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
